package com.tonann.app.service;

import com.tonann.app.domain.AppFaultRule;

import java.util.List;

/**
 * 故障诊断规则Service接口
 * 
 * @author tonann
 * @date 2022-10-15
 */
public interface IAppFaultRuleService 
{
    /**
     * 查询故障诊断规则
     * 
     * @param faultRuleId 故障诊断规则主键
     * @return 故障诊断规则
     */
    public AppFaultRule selectAppFaultRuleByFaultRuleId(Long faultRuleId);

    /**
     * 查询故障诊断规则列表
     * 
     * @param appFaultRule 故障诊断规则
     * @return 故障诊断规则集合
     */
    public List<AppFaultRule> selectAppFaultRuleList(AppFaultRule appFaultRule);

    /**
     * 新增故障诊断规则
     * 
     * @param appFaultRule 故障诊断规则
     * @return 结果
     */
    public int insertAppFaultRule(AppFaultRule appFaultRule);

    /**
     * 修改故障诊断规则
     * 
     * @param appFaultRule 故障诊断规则
     * @return 结果
     */
    public int updateAppFaultRule(AppFaultRule appFaultRule);

    /**
     * 批量删除故障诊断规则
     * 
     * @param faultRuleIds 需要删除的故障诊断规则主键集合
     * @return 结果
     */
    public int deleteAppFaultRuleByFaultRuleIds(Long[] faultRuleIds);

    /**
     * 删除故障诊断规则信息
     * 
     * @param faultRuleId 故障诊断规则主键
     * @return 结果
     */
    public int deleteAppFaultRuleByFaultRuleId(Long faultRuleId);

    List<AppFaultRule> selectAppFaultRuleByFaultRuleName(String faultRuleName);
}
